<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>方法1：clip-path</title>

    <style>

        body{
            background: pink;
        }

        .div-hole {
            position: relative;
            width: 200px;
            height: 200px;
            background-color: #f0f0f0;
        }

        .div-hole::before {
            content: "";
            position: absolute;
            top: 20px;
            /* 根据需要调整 */
            left: 20px;
            /* 根据需要调整 */
            width: 160px;
            /* 根据需要调整 */
            height: 160px;
            /* 根据需要调整 */
            background-color: #fff;
            /* 或者设置为透明 */
            clip-path: circle(80px at center);
            /* 创建圆形挖空 */
        }
    </style>

</head>

<body>
    <div class="div-hole">

    </div>

</body>

</html>
